package com.example.demo.设计模式.适配器模式.类适配器;

/**
 * @description:
 * @projectName:demo
 * @see:设计模式.适配器模式
 * @author:袁成龙
 * @createTime:2020/10/13 9:32
 * @version:1.0
 */
public class TestObject extends ShiPeiLei implements ShiEPeiInterface {

    private ShiEPeiInterface shiEPeiInterface;

    public TestObject(ShiEPeiInterface shiEPeiInterface) {
        this.shiEPeiInterface = shiEPeiInterface;
    }

    @Override
    public void test2() {
        shiEPeiInterface.test2();
    }


//    @Override
//    public void test1() {
//        shiEPeiInterface.test1();
//    }
}